package com.foreverwin.mes.production.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 设备库存上料卸料记录
 * </p>
 *
 * @author Ervin Chen
 * @since 2020-03-30
 */
@TableName("Z_RESOURCE_INVENTORY_LOG")
public class ResourceInventoryLog extends Model<ResourceInventoryLog> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
   @TableId(value = "HANDLE", type = IdType.INPUT)
   private String handle;
    /**
     * 站点
     */
   @TableField("SITE")
   private String site;
    /**
     * 设备编号
     */
   @TableField("RESRCE")
   private String resrce;
    /**
     * 物料
     */
   @TableField("ITEM_BO")
   private String itemBo;
    /**
     * 库存编号
     */
   @TableField("INVENTORY_ID")
   private String inventoryId;
    /**
     * 库存批次
     */
   @TableField("VENDOR_LOT")
   private String vendorLot;
    /**
     * 上料数量/卸料数量
     */
   @TableField("QTY")
   private Double qty;
    /**
     * 上料模式
     */
   @TableField("LOAD_MODE")
   private String loadMode;
    /**
     * 创建日期
     */
   @TableField("CREATED_DATE_TIME")
   private Date createdDateTime;
    /**
     * 更新日期
     */
   @TableField("UPDATED_DATE_TIME")
   private Date updatedDateTime;
    /**
     * 创建人员
     */
   @TableField("CREATE_USER_BO")
   private String createUserBo;
    /**
     * 更新人员
     */
   @TableField("UPDATE_USER_BO")
   private String updateUserBo;


   public String getHandle() {
      return handle;
   }

   public void setHandle(String handle) {
      this.handle = handle;
   }

   public String getSite() {
      return site;
   }

   public void setSite(String site) {
      this.site = site;
   }

   public String getResrce() {
      return resrce;
   }

   public void setResrce(String resrce) {
      this.resrce = resrce;
   }

   public String getItemBo() {
      return itemBo;
   }

   public void setItemBo(String itemBo) {
      this.itemBo = itemBo;
   }

   public String getInventoryId() {
      return inventoryId;
   }

   public void setInventoryId(String inventoryId) {
      this.inventoryId = inventoryId;
   }

   public String getVendorLot() {
      return vendorLot;
   }

   public void setVendorLot(String vendorLot) {
      this.vendorLot = vendorLot;
   }

   public Double getQty() {
      return qty;
   }

   public void setQty(Double qty) {
      this.qty = qty;
   }

   public String getLoadMode() {
      return loadMode;
   }

   public void setLoadMode(String loadMode) {
      this.loadMode = loadMode;
   }

   public Date getCreatedDateTime() {
      return createdDateTime;
   }

   public void setCreatedDateTime(Date createdDateTime) {
      this.createdDateTime = createdDateTime;
   }

   public Date getUpdatedDateTime() {
      return updatedDateTime;
   }

   public void setUpdatedDateTime(Date updatedDateTime) {
      this.updatedDateTime = updatedDateTime;
   }

   public String getCreateUserBo() {
      return createUserBo;
   }

   public void setCreateUserBo(String createUserBo) {
      this.createUserBo = createUserBo;
   }

   public String getUpdateUserBo() {
      return updateUserBo;
   }

   public void setUpdateUserBo(String updateUserBo) {
      this.updateUserBo = updateUserBo;
   }

   public static final String HANDLE = "HANDLE";

   public static final String SITE = "SITE";

   public static final String RESRCE = "RESRCE";

   public static final String ITEM_BO = "ITEM_BO";

   public static final String INVENTORY_ID = "INVENTORY_ID";

   public static final String VENDOR_LOT = "VENDOR_LOT";

   public static final String QTY = "QTY";

   public static final String LOAD_MODE = "LOAD_MODE";

   public static final String CREATED_DATE_TIME = "CREATED_DATE_TIME";

   public static final String UPDATED_DATE_TIME = "UPDATED_DATE_TIME";

   public static final String CREATE_USER_BO = "CREATE_USER_BO";

   public static final String UPDATE_USER_BO = "UPDATE_USER_BO";

   @Override
   protected Serializable pkVal() {
      return this.handle;
   }

   @Override
   public String toString() {
      return "ResourceInventoryLog{" +
         "handle = " + handle +
         ", site = " + site +
         ", resrce = " + resrce +
         ", itemBo = " + itemBo +
         ", inventoryId = " + inventoryId +
         ", vendorLot = " + vendorLot +
         ", qty = " + qty +
         ", loadMode = " + loadMode +
         ", createdDateTime = " + createdDateTime +
         ", updatedDateTime = " + updatedDateTime +
         ", createUserBo = " + createUserBo +
         ", updateUserBo = " + updateUserBo +
         "}";
   }
}